<?php

/**
 * transportType actions.
 *
 * @package    jobeet
 * @subpackage transportType
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class transportTypeActions extends autoTransportTypeActions
{
//  public function executeIndex(sfWebRequest $request)
//  {
//    $this->transport_types = Doctrine_Core::getTable('TransportType')
//      ->createQuery('a')
//      ->execute();
//  }

//  public function executeNew(sfWebRequest $request)
//  {
//    $this->form = new TransportTypeForm();
//  }

//  public function executeCreate(sfWebRequest $request)
//  {
//    $this->forward404Unless($request->isMethod(sfRequest::POST));
//
//    $this->form = new TransportTypeForm();
//
//    $this->processForm($request, $this->form);
//
//    $this->setTemplate('new');
//  }

//  public function executeEdit(sfWebRequest $request)
//  {
//    $this->forward404Unless($transport_type = Doctrine_Core::getTable('TransportType')->find(array($request->getParameter('id'))), sprintf('Object transport_type does not exist (%s).', $request->getParameter('id')));
//    $this->form = new TransportTypeForm($transport_type);
//  }
//
//  public function executeUpdate(sfWebRequest $request)
//  {
//    $this->forward404Unless($request->isMethod(sfRequest::POST) || $request->isMethod(sfRequest::PUT));
//    $this->forward404Unless($transport_type = Doctrine_Core::getTable('TransportType')->find(array($request->getParameter('id'))), sprintf('Object transport_type does not exist (%s).', $request->getParameter('id')));
//    $this->form = new TransportTypeForm($transport_type);
//
//    $this->processForm($request, $this->form);
//
//    $this->setTemplate('edit');
//  }
//
//  public function executeDelete(sfWebRequest $request)
//  {
//    $request->checkCSRFProtection();
//
//    $this->forward404Unless($transport_type = Doctrine_Core::getTable('TransportType')->find(array($request->getParameter('id'))), sprintf('Object transport_type does not exist (%s).', $request->getParameter('id')));
//    $transport_type->delete();
//
//    $this->redirect('transportType/index');
//  }
//
//  protected function processForm(sfWebRequest $request, sfForm $form)
//  {
//    $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName()));
//    if ($form->isValid())
//    {
//      $transport_type = $form->save();
//
//      $this->redirect('transportType/edit?id='.$transport_type->getId());
//    }
//  }
}
